#include "../../platform/win32/inc/stdafx.h"
#include "../common/inc/InternalCommon.h"
#include "../inc/Semaphore.h"

namespace	Platform
{

	namespace System
	{

		CSemaphore::CSemaphore(){}

		CSemaphore::~CSemaphore(){}

		CSemaphore::CSemaphore(const CSemaphore &object)
		{
			(*this) = object;
		}

		CSemaphore& CSemaphore::operator=(const CSemaphore &object)
		{
			return (*this);
		}

		bool CSemaphore::operator==(const CSemaphore &object)
		{
			return (this == &object);
		}

		int CSemaphore::Create(void)
		{
			return m_System.Create();
		}

		int CSemaphore::Destroy(void)
		{
			return m_System.Destroy();
		}

		int CSemaphore::Signal(void)
		{
			return m_System.Signal();
		}

		int CSemaphore::Wait(IN DWORD timeout)
		{
			return m_System.Wait(timeout);
		}

	}

}